package com.xm.dao.impl;

import com.xm.dao.BannerDao;
import com.xm.po.Banner;
import com.xm.util.DButil;

import java.util.List;

/**
 * @author Administrator
 * @date 2020-08-07-12:06
 * @description 轮播图数据操作接口实现接口
 */
public class BannerDaoImpl implements BannerDao {
    @Override
    public List<Banner> getAll() {
        List<Banner>list= (List<Banner>) DButil.queryAll(Banner.class);
        return list;
    }

    @Override
    public boolean add(Banner banner) {
        return false;
    }

    @Override
    public boolean update(Banner banner) {
        return DButil.update(banner);
    }

    @Override
    public Banner findById(Integer id) {
        return null;
    }

    @Override
    public boolean deleteById(String id) {
        return DButil.delete(Banner.class,id);
    }
}
